import env
import mcrud
import api
import amg2plot
import amblog

env.load(".env")
db = mcrud.new_env()

app = api.Api(
    routes=[
        *amg2plot.get_routes_line(db),
        *amblog.get_routes_markdown(db),
    ],
    middleware=[api.middleware.cors()],
)

if __name__ == '__main__':
    app.run()
